﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XiaoYuStock.Model
{
   

    /// <summary>
    /// 
    /// </summary>
    public enum AnalysedType
    {
        /// <summary>
        /// 连续涨
        /// </summary>
        [BaseEnum(cname: "连续涨", ename: "SequenceIncrease", scode: "I")]
        SequenceIncrease = 10,
        ///// <summary>
        ///// 连续跌
        ///// </summary>
        //[BaseEnum(cname: "连续跌", ename: "SequenceDescend", scode: "D")]
        //SequenceDescend = 20,
        ///// <summary>
        ///// 开小于收
        ///// </summary>
        //[BaseEnum(cname: "开小于收", ename: "OpenLessThanClose", scode: "L")]
        //OpenLessThanClose = 30,
        ///// <summary>
        ///// 开大于收
        ///// </summary>
        //[BaseEnum(cname: "开大于收", ename: "OpenMoreThanClose", scode: "M")]
        //OpenMoreThanClose = 40,
        /// <summary>
        /// 先跌后涨
        /// </summary>
        [BaseEnum(cname: "先跌后涨", ename: "CrossState", scode: "C")]
        Cross = 50

    }

    /// <summary>
    /// 股票状态
    /// </summary>
    public enum ShareState
    {

        /// <summary>
        /// 激活状态
        /// </summary>
        Active = 101,
        /// <summary>
        /// 无效状态
        /// </summary>
        Inactive = 102,
        /// <summary>
        /// 删除状态
        /// </summary>
        Deleted = 103,

    }

    /// <summary>
    /// 交易类型
    /// </summary>
    public enum TradeStatus { 
    
       Sell=0,
       Buy=1
    }

    public enum ShareOrder
    {
        /// <summary>
        /// 涨幅
        /// </summary>
        Gain=1,
        /// <summary>
        /// 跌幅
        /// </summary>
        Decline = 2,

        /// <summary>
        /// 价高
        /// </summary>
        HighPrice=3,
        /// <summary>
        /// 价低
        /// </summary>
        LowPrice=4
    }
}
